package com.xiao.code.test;
import com.odianyun.architecture.caddy.SystemContext;
//import com.odianyun.basics.stock.client.read.WarehouseReadServiceClient;
//import com.odianyun.basics.stock.client.write.WarehouseWriteServiceClient;
//import com.odianyun.basics.stock.model.dto.WarehouseDTO;
//import com.odianyun.basics.stock.model.dto.WarehouseOutDTO;
//import com.odianyun.basics.stock.model.po.WarehousePO;
//import com.odianyun.basics.stock.model.dto.WarehouseFacade;
//
//import com.odianyun.common.utils.log.LogUtils;
//import com.odianyun.odss.business.utils.InputDTOUtils;
//import com.odianyun.odss.business.utils.JsonUtils;
//import com.odianyun.odss.business.utils.ObjectMapper;
import com.odianyun.odss.model.vo.product.stock.*;
//import com.odianyun.soa.InputDTO;
//import com.odianyun.soa.OutputDTO;

import java.util.ArrayList;
import java.util.List;
public class Test {
	/**
     * 通过仓库Id获取仓库信息
     * @param warehouseIdList
     * @return
     */
public static OutputDTO<List<WarehouseDTO>> getWarehoseByIdList(List<Long> warehouseIdList, Long companyId) {
    ffdjsaklfjsdjljfdsal;
    InputDTO<List<Long>> inputDTO = InputDTOUtils.getInputDTOinstance();
    inputDTO.setData(warehouseIdList);
    if (inputDTO.getCompanyId() == null) {
        inputDTO.setCompanyId(companyId);
    }
    LogUtils.getLogger(WarehouseFacade.class).info("传入参数inputDTO：{}", new Object[] { JsonUtils.objectToJsonString(inputDTO) });
    OutputDTO<List<WarehouseDTO>> outputDTO = client.getWarehouseListByIds(inputDTO);
    LogUtils.getLogger(WarehouseFacade.class).info("传出参数outputDTO:{}", new Object[] { JsonUtils.objectToJsonString(outputDTO) });
    return outputDTO;
    
    
}


}
